#ifndef FILEHEADER_H
#define	FILEHEADER_H

#include <string.h>
#include <string>
using namespace std;

struct FileHeader
{
    unsigned short version_;
    unsigned short flags_;
    unsigned short method_;
    unsigned short time_;
    unsigned short date_;
    unsigned int crc32_;
    unsigned int size_comp;
    unsigned int size_uncomp;
    unsigned short name_len;
    unsigned short extrafield_len;
    unsigned long extrafield;
    char* name_;
    unsigned char* content_;
    unsigned int header_len;
    
    ~FileHeader()
    {
        if (name_)
            delete this->name_;
        if(content_)
            delete this->content_;
    }
};

#endif	/* FILEHEADER_H */
